//
//  UIImage+Extension.h
//  Safflower
//
//  Created by 袁亮 on 2016/12/7.
//  Copyright © 2016年 Migic_Z. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Extension)

/**
 将图片转化Base64字符串
 
 @param image UIImage *
 @return NSString *
 */
+ (NSString *) imageToBase64String:(UIImage *)image;

+ (UIImage *)imageWithColor:(UIColor *)color;

+(UIImage *)avatarImageWithOriginalImage:(UIImage *)originalImage;

/**
 *  等比例缩放图片
 *
 *  @param image 原始图片
 *  @param multiple  等比缩放倍数
 *
 *  @return 缩放之后的图片
 */
+(UIImage*)scaleImage:(UIImage *)image multiple:(CGFloat) multiple;

@end
